package demo1;

public class Test {
    public static void drawShape(IShape shape) {
        shape.draw();
    }
    public static void main(String[] args) {
        IShape rect = new Rect();
        IShape triangle = new Triangle();
        IShape cycle = new Cycle();
        drawShape(rect);
        drawShape(triangle);
        drawShape(cycle);
    }
}
